package com.woniuxy.factory.entity;

import java.util.Date;

/**
 * @NTLX data 2020 08 20
 */
public class PersonnelRecord {
    private Emp emp;
    private Integer transferType;
    private Dep preDep;
    private Post prePost;
    private Dep afterDep;
    private Post afterPost;
    private Date transferdate;

    public PersonnelRecord() {
    }

    public PersonnelRecord(Emp emp, Integer transferType, Dep preDep, Post prePost, Dep afterDep, Post afterPost, Date transferdate) {
        this.emp = emp;
        this.transferType = transferType;
        this.preDep = preDep;
        this.prePost = prePost;
        this.afterDep = afterDep;
        this.afterPost = afterPost;
        this.transferdate = transferdate;
    }

    public Emp getEmp() {
        return emp;
    }

    public void setEmp(Emp emp) {
        this.emp = emp;
    }

    public Integer getTransferType() {
        return transferType;
    }

    public void setTransferType(Integer transferType) {
        this.transferType = transferType;
    }

    public Dep getPreDep() {
        return preDep;
    }

    public void setPreDep(Dep preDep) {
        this.preDep = preDep;
    }

    public Post getPrePost() {
        return prePost;
    }

    public void setPrePost(Post prePost) {
        this.prePost = prePost;
    }

    public Dep getAfterDep() {
        return afterDep;
    }

    public void setAfterDep(Dep afterDep) {
        this.afterDep = afterDep;
    }

    public Post getAfterPost() {
        return afterPost;
    }

    public void setAfterPost(Post afterPost) {
        this.afterPost = afterPost;
    }

    public Date getTransferdate() {
        return transferdate;
    }

    public void setTransferdate(Date transferdate) {
        this.transferdate = transferdate;
    }

    @Override
    public String toString() {
        return "PersonnelRecord{" +
                "emp=" + emp +
                ", transferType=" + transferType +
                ", preDep=" + preDep +
                ", prePost=" + prePost +
                ", afterDep=" + afterDep +
                ", afterPost=" + afterPost +
                ", transferdate=" + transferdate +
                '}';
    }
}
